//
//  CashOut.m
//  OrgOnline
//
//  Created by kiko on 16/3/3.
//  Copyright © 2016年 kiko. All rights reserved.
//
#import "SixGrayButton.h"
#import "SixTwoLabel.h"
#import "CashOut.h"
#import "BlueButton.h"
#import "WhiteField.h"

@interface CashOut (){
    NSString *tel;
}

@end

@implementation CashOut

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor colorWithRed:241.0f/255.0f green:242.0f/255.0f blue:247.0f/255.0f alpha:1];
    self.title = @"提现";
    [self viewDidLoadBlue];
    [self configContent];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)configContent{
    SixTwoLabel *telmsg=[[SixTwoLabel alloc] initWithFrame:CGRectMake(0,84, swidth, 20)];
    telmsg.text=[[NSString alloc] initWithFormat:@"当前绑定手机号： %@ " ,tel];
    telmsg.textAlignment=NSTextAlignmentCenter;
    [self.view addSubview:telmsg];
    
    UIView *line1=[[UIView alloc] initWithFrame:CGRectMake(10, 108.5, swidth-20, 0.5)];
    line1.backgroundColor=[UIColor colorWithRed:226.0f/255.0f green:226.0f/255.0f blue:226.0f/255.0f alpha:1];
    [self.view addSubview:line1];
    
    
    WhiteField *accounts = [[WhiteField alloc] initWithFrame:CGRectMake(0, 109, swidth, 40)];
    accounts.placeholder = @"支付宝账号：";
    [self.view addSubview:accounts];
    
    WhiteField *money = [[WhiteField alloc] initWithFrame:CGRectMake(0, 149, swidth, 40)];
    money.placeholder = @"提现金额：";
    [self.view addSubview:money];
    
    UIView *line2=[[UIView alloc] initWithFrame:CGRectMake(10, 149.5, swidth-20, 0.5)];
    line2.backgroundColor=[UIColor colorWithRed:226.0f/255.0f green:226.0f/255.0f blue:226.0f/255.0f alpha:1];
    [self.view addSubview:line2];
    
    
    
    UIView *line3=[[UIView alloc] initWithFrame:CGRectMake(10, 189, swidth-20, 1)];
    line3.backgroundColor=[UIColor colorWithRed:226.0f/255.0f green:226.0f/255.0f blue:226.0f/255.0f alpha:1];
    [self.view addSubview:line3];
    
    
    
    WhiteField *passwrd = [[WhiteField alloc] initWithFrame:CGRectMake(0, 199.5, swidth, 40)];
    passwrd.placeholder = @"平台支付密码：";
    [self.view addSubview:passwrd];
    
    
    
    UIView *line4=[[UIView alloc] initWithFrame:CGRectMake(10, 199.5, swidth-20, 0.5)];
    line4.backgroundColor=[UIColor colorWithRed:226.0f/255.0f green:226.0f/255.0f blue:226.0f/255.0f alpha:1];
    [self.view addSubview:line4];
    
   
    
    WhiteField *verifywrd = [[WhiteField alloc] initWithFrame:CGRectMake(0, 239, swidth, 40)];
    verifywrd.placeholder = @"验证码：";
    [self.view addSubview:verifywrd];
    
    SixGrayButton *getverify=[SixGrayButton buttonWithType:UIButtonTypeCustom];
    getverify.frame = CGRectMake(swidth-120, 6 ,99, 28);
    [getverify setTitle:@"获取验证码" forState:UIControlStateNormal];
    [getverify.titleLabel setFont:[UIFont boldSystemFontOfSize:12]];
   // [cashout addTarget:self action:@selector(cashOut) forControlEvents:UIControlEventTouchUpInside];
    [verifywrd addSubview:getverify];
    
    

    UIView *line5=[[UIView alloc] initWithFrame:CGRectMake(10, 239.5, swidth-20, 0.5)];
    line5.backgroundColor=[UIColor colorWithRed:226.0f/255.0f green:226.0f/255.0f blue:226.0f/255.0f alpha:1];
    [self.view addSubview:line5];
    
    UIView *line6=[[UIView alloc] initWithFrame:CGRectMake(10, 279, swidth-20, 0.5)];
    line6.backgroundColor=[UIColor colorWithRed:226.0f/255.0f green:226.0f/255.0f blue:226.0f/255.0f alpha:1];
    [self.view addSubview:line6];
    
    BlueButton *applybut=[BlueButton buttonWithType:UIButtonTypeCustom];
    applybut.frame = CGRectMake(20, 343.5, swidth-40, 36);
    [applybut setTitle:@"申请提现" forState:UIControlStateNormal];
    [applybut.titleLabel setFont:[UIFont boldSystemFontOfSize:13]];
    // [cashout addTarget:self action:@selector(cashOut) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:applybut];
    
    
    
    
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
